package com.spice.service.entity.form;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.spice.common.model.BaseEntity;
import com.spice.service.entity.pojo.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("编辑实体类数据提交格式")
public class EditEntityForm<T> {
    @ApiModelProperty(value = "删除或修改时使用的id", example = "1")
    private Long id;

    @ApiModelProperty(value = "增加或修改时使用的新对象", example = "")
    private T t;
}
